/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.netbeans.rest.application.config;

import br.com.fgv.tcc.fgv.imovel.service.FileResource;
import java.util.Set;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.glassfish.jersey.media.multipart.MultiPartFeature;


/**
 *
 * @author diego
 */
@ApplicationPath("webresources")
public class ApplicationConfig extends Application {

    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new java.util.HashSet<>();
        addRestResourceClasses(resources);
        return resources;
    }

    
    
    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(br.com.fgv.tcc.fgv.imovel.service.FileResource.class);
        resources.add(br.com.fgv.tcc.fgv.imovel.service.ImovelService.class);
        resources.add(br.com.fgv.tcc.fgv.imovel.service.PersonResource.class);
        resources.add(br.com.fgv.tcc.fgv.imovel.service.UsuarioService.class);
        resources.add(FileResource.class);
        resources.add(MultiPartFeature.class);
        resources.add(FormDataContentDisposition.class);
    }

}
